package com.hh.flow.domain.tables;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

/**
 * 流程结点表tableDef
 * default_columns中不能放ignore、isLarge、isLogicDelete
 * @author hh
 * @date 2023-05-03
 */
public class FlowNodeTableDef extends TableDef {

    public static final FlowNodeTableDef flow_node = new FlowNodeTableDef("flow_node");

    public QueryColumn id = new QueryColumn(this, "id");
    public QueryColumn node_type = new QueryColumn(this, "node_type");
    public QueryColumn definition_id = new QueryColumn(this, "definition_id");
    public QueryColumn node_name = new QueryColumn(this, "node_name");
    public QueryColumn node_code = new QueryColumn(this, "node_code");
    public QueryColumn role_code = new QueryColumn(this, "role_code");
    public QueryColumn role_name = new QueryColumn(this, "role_name");
    public QueryColumn version = new QueryColumn(this, "version");
    public QueryColumn create_by = new QueryColumn(this, "create_by");
    public QueryColumn create_time = new QueryColumn(this, "create_time");
    public QueryColumn update_by = new QueryColumn(this, "update_by");
    public QueryColumn update_time = new QueryColumn(this, "update_time");
    public QueryColumn del_flag = new QueryColumn(this, "del_flag");

    public QueryColumn[] default_columns = new QueryColumn[]{ id, node_type, definition_id, node_name, node_code, role_code, role_name, version, create_by, create_time, update_by, update_time, };
    public QueryColumn[] all_columns = new QueryColumn[]{ id, node_type, definition_id, node_name, node_code, role_code, role_name, version, create_by, create_time, update_by, update_time, del_flag};

    public FlowNodeTableDef(String tableName) {
        super(tableName);
    }
}
